import request from '@/utils/request'

// 查询用户历史照片列表
export function listUserimage(query) {
  return request({
    url: '/my/userimage/list',
    method: 'get',
    params: query
  })
}

// 查询用户历史照片详细
export function getUserimage(userImageId) {
  return request({
    url: '/my/userimage/' + userImageId,
    method: 'get'
  })
}

// 新增用户历史照片
export function addUserimage(data) {
  return request({
    url: '/my/userimage',
    method: 'post',
    data: data
  })
}

// 修改用户历史照片
export function updateUserimage(data) {
  return request({
    url: '/my/userimage',
    method: 'put',
    data: data
  })
}

// 删除用户历史照片
export function delUserimage(userImageId) {
  return request({
    url: '/my/userimage/' + userImageId,
    method: 'delete'
  })
}
